home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / bmenu54.zip / EXAMPLE2.BAT < prev    next >
DOS Batch File  |  1990-02-12  |  526b  |  28 lines

  1. echo off
  2. echo 
  3. echo  Standard batch file example, with user defined colors...
  4. echo 
  5. echo usage: bmenu 10 40 -3 4 118 " Long Title " One Two Three Four
  6. echo 
  7. bmenu 10 40 -3 4 118 " Long Title " One Two Three Four
  8. if errorlevel 4 goto f
  9. if errorlevel 3 goto t
  10. if errorlevel 2 goto w
  11. if errorlevel 1 goto o
  12. if errorlevel 0 goto esc
  13. :f
  14.     echo Four was chosen
  15.     goto end
  16. :t    
  17.     echo Three was chosen
  18.     goto end
  19. :w    
  20.     echo Two was chosen
  21.     goto end
  22. :o    
  23.     echo One was chosen
  24.     goto end
  25. :esc
  26.     echo ESC hit
  27. :end
  28.